//
//  PresentedNavigationController.h
//  mmbang
//
//  Created by 肖信波 on 13-6-5.
//  Copyright (c) 2013年 iyaya. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseNavigationController.h"
@class PresentedNavigationController;

typedef void(^PresentAnimationFinishBlock)(PresentedNavigationController *navController);
typedef void(^LoginCompletionBlock)(PresentedNavigationController *navController, BOOL loginSuccess);

@interface PresentedNavigationController : BaseNavigationController

@property(nonatomic, strong) UIViewController *rootViewController;

- (void)present;
- (void)dismiss;
- (void)dismissWithCompletion:(void (^)(void))completion;

// 这里的loginCompletion block 和 |- (void)dismissWithCompletion:(void (^)(void))completion| 的completion 不互斥

- (void)presentWithCompletion:(PresentAnimationFinishBlock)presentCompletion
           loginFinishedBlock:(LoginCompletionBlock)loginCompletion;

- (void)presentWithNoAnimation;


@end
